#!/bin/sh

if [ $# -ne 1 ]; then
	echo "Usage: $0 word"
	exit -1
fi

rm -f $1.result


sed -e "s/聚氨酯/$1/" WebITS.py >WebITS_1.py

for files in `cat langs.md`
do
	sed -e "s/\"en\"/\"$files\"/" WebITS_1.py >WebITS_$files.py
	python3 WebITS_$files.py >>$1.result
	rm -f WebItS_$files.py
done

awk -F\' '{print $14 " " $20}' $1.result >$1.txt

#rm -f WebITS_1.py

